package com.itheima.a09oopextendsdemo9;

public class Test10 {
    public static void main(String[] args) {
        //创建对象并赋值调用
        Manager m = new Manager("001", "张三", 15000, 8000);
        System.out.println(m.getId() + ", " + m.getName() + ", " + m.getSalary() + ", " + m.getBouns());
        m.work();
        m.eat();

        Cook c = new Cook();
        c.setId("001");
        c.setName("李四");
        c.setSalary(8000);
        System.out.println(c.getId() + ", " + c.getName() + ", " + c.getSalary());
        c.work();
        c.eat();
    }
}
